package com.shu.auth.vo;

import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
public class TestVo extends BaseVo {
    @NotBlank
    private String msg;
    //自定义message
    @NotNull(message = "id不能为空")
    @Max(value = 10,message = "id不能大于10")
    @Min(value = 1,message = "id不能小于1")
    private Integer id;
}
